#include "obj.h"

uint64 Obj::ptr() const { return ptr_; }
ObjType Obj::type() const { return type_; }
uint32 Obj::index() const { return index_; }
uint64 Obj::id1() const { return id1_; }
uint64 Obj::id2() const { return id2_; }

Obj::Obj(uint64 ptr) : ptr_{ptr} {
  type_ = static_cast<ObjType>(r1(ptr + 0x8));
  index_ = r4(ptr + 0x10);
  id1_ = r8(ptr + 0x18);
  id2_ = r8(ptr + 0x20);
}

Obj::~Obj() {}
